# - Config file for the RGBDSLAM package

# It defines the following variables
#  RGBDSLAM_INCLUDE_DIRS - include directories for RTABMap
#  RGBDSLAM_LIBRARIES    - libraries to link against
#  RGBDSLAM_CORE         - core library
#  RGBDSLAM_UTILITE      - utilite library
#  RGBDSLAM_GUI          - gui library (set if RTABMap is built with Qt)


#得到路径
get_filename_component(RGBDSLAM_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
set(RGBDSLAM_INCLUDE_DIRS "/home/wait/workspace/rgbdslam/corelib/include;/home/wait/workspace/rgbdslam/utilite/include")

#核心库
find_library(RGBDSLAM_CORE_RELEASE NAMES rgbdslam_core NO_DEFAULT_PATH HINTS /home/wait/workspace/rgbdslam/lib /home/wait/workspace/rgbdslam/bin)
find_library(RGBDSLAM_CORE_DEBUG NAMES rgbdslam_cored NO_DEFAULT_PATH HINTS /home/wait/workspace/rgbdslam/lib /home/wait/workspace/rgbdslam/bin)

IF(RGBDSLAM_CORE_DEBUG AND RGBDSLAM_CORE_RELEASE)
   SET(RGBDSLAM_CORE
      debug ${RGBDSLAM_CORE_DEBUG}
      optimized ${RGBDSLAM_CORE_RELEASE}
   )
ELSEIF(RGBDSLAM_CORE_DEBUG)
   SET(RGBDSLAM_CORE ${RGBDSLAM_CORE_DEBUG})
ELSE()
   SET(RGBDSLAM_CORE ${RGBDSLAM_CORE_RELEASE})
ENDIF()

#utilite库
find_library(RGBDSLAM_UTILITE_RELEASE NAMES rgbdslam_utilite NO_DEFAULT_PATH HINTS /home/wait/workspace/rgbdslam/lib /home/wait/workspace/rgbdslam/bin)
find_library(RGBDSLAM_UTILITE_DEBUG NAMES rgbdslam_utilited NO_DEFAULT_PATH HINTS /home/wait/workspace/rgbdslam/lib /home/wait/workspace/rgbdslam/bin)

IF(RGBDSLAM_UTILITE_DEBUG AND RGBDSLAM_UTILITE_RELEASE)
   SET(RGBDSLAM_UTILITE
      debug ${RGBDSLAM_UTILITE_DEBUG}
      optimized ${RGBDSLAM_UTILITE_RELEASE}
   )
ELSEIF(RGBDSLAM_UTILITE_DEBUG)
   SET(RGBDSLAM_UTILITE ${RGBDSLAM_UTILITE_DEBUG})
ELSE()
   SET(RGBDSLAM_UTILITE ${RGBDSLAM_UTILITE_RELEASE})
ENDIF()

set(RGBDSLAM_LIBRARIES ${RGBDSLAM_CORE} ${RGBDSLAM_UTILITE})

#gui lib (OFF if RTAB-Map is not built with Qt)

#if()
#   find_library(RTABMap_GUI_RELEASE NAMES rtabmap_gui NO_DEFAULT_PATH HINTS /home/wait/workspace/rgbdslam/lib /home/wait/workspace/rgbdslam/bin)

